package com.bw.module_car.view

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.LinearLayout
import androidx.constraintlayout.widget.ConstraintLayout
import com.bw.module_car.R
/**
 * 智慧园区-02-车辆缴费v1.1-曲烨-20250509
 */
class CarPayActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_car_pay)


        val carpay_pay = findViewById<Button>(R.id.carpay_pay)

        val carpay_zfb = findViewById<ConstraintLayout>(R.id.carpay_zfb)
        val carpay_wechat = findViewById<ConstraintLayout>(R.id.carpay_wechat)
        val carpay_yinlian = findViewById<ConstraintLayout>(R.id.carpay_yinlian)

        carpay_pay.setOnClickListener {
            startActivity(Intent(this,PayRecordActivity::class.java))
        }

        carpay_zfb.setOnClickListener {
            carpay_zfb.setBackgroundResource(R.drawable.item_carpay3)
            carpay_wechat.setBackgroundResource(R.drawable.item_carpay2)
            carpay_yinlian.setBackgroundResource(R.drawable.item_carpay2)
        }

        carpay_wechat.setOnClickListener {
            carpay_zfb.setBackgroundResource(R.drawable.item_carpay2)
            carpay_wechat.setBackgroundResource(R.drawable.item_carpay3)
            carpay_yinlian.setBackgroundResource(R.drawable.item_carpay2)
        }

        carpay_yinlian.setOnClickListener {
            carpay_zfb.setBackgroundResource(R.drawable.item_carpay2)
            carpay_wechat.setBackgroundResource(R.drawable.item_carpay2)
            carpay_yinlian.setBackgroundResource(R.drawable.item_carpay3)
        }
    }
}